import { init } from 'snabbdom/build/package/init';
import { h } from 'snabbdom/build/package/h';

const patch = init([])

let vnode = h('ul', [
  h('li', 'aaa'),
  h('li', 'bbb'),
  h('li', 'ccc')
])


let app = document.querySelector('#app')
let oldVnode = patch(app, vnode)

vnode = h('ul', [
  h('li', 'aaa'),
  h('li', 'ccc'),
  h('li', 'bbb')
])

patch(oldVnode, vnode)

// vnode = h('ul', [
//   h('li', 'aaa'),
//   h('li', 'ccc'),
//   h('li', 'bbb'),
//   h('li', 'ddd')
// ])

// patch(oldVnode, vnode)
